package cn.getech.data.development.controller.real;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value = "实时任务运维")
public class RealTimeTaskHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("项目名")
    private String procName;
    private Integer procId;
    private Integer tenantId;

    @ApiModelProperty(value = "调度名称")
    private String queueName;
    /**
     * 任务类型，关联枚举类:RealTimeTaskType
     * @see cn.getech.data.development.constant.Constant.RealTimeTaskType#
     */
    @ApiModelProperty(value = "任务类型")
    private Integer taskType;

    @ApiModelProperty("任务名称")
    private String taskName;


    /**
     * 0 失败 1 成功 2 运行中 3 未运行
     * @see cn.getech.data.development.constant.RunStatus
     */
    @ApiModelProperty("运行状态")
    private Integer runState;

    @ApiModelProperty("duration")
    private String duration;

    @ApiModelProperty("创建人id")
    private Long createPer;

    @ApiModelProperty("创建人名称")
    private String createPerName;
    private Integer menuId;
    private Integer id;
    @ApiModelProperty("运行时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date runTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;

}
